import java.lang.StringBuilder;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class A248_2 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input;
		StringBuilder output = new StringBuilder();
		String[] spInput;
		int a, b, n;
		int quotient;
		
		while((input = br.readLine()) != null) {
			spInput = input.split(" ");
			a = Integer.parseInt(spInput[0]);
			b = Integer.parseInt(spInput[1]);
			n = Integer.parseInt(spInput[2]);
			
			output.append(Integer.toString(a / b) + ".");
			
			for(int i = 0; i < n; i++) {
				a = ((a % b) * 10);
				quotient = (a / b);
				output.append(Integer.toString(quotient));
			}
			
			output.append('\n');
		}
		
		System.out.print(output);
	} // end of main
} // end of class A248